package eee.xiang.cloud_learning.service;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.stereotype.Service;

/**
 * @author work
 * @Date 2019/12/18
 * @description
 */
@Service
public class SubClasA extends SuperClas implements InitializingBean {

    public String desc ;

    public void method(){
        System.out.println("A  "+userMapper);
    }

    @Override
    public void afterPropertiesSet() {
        System.out.println("A InitializingBean started !!!");
        new Thread(() -> {
            try {
                Thread.sleep(2000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            desc = "A  desc setted !!!";
        }).start();
    }
}
